// +----------------------------------------------------------------------
// | Project:   boxfish-android-commons  
// +----------------------------------------------------------------------
// | CreateTime: 15/12/7  下午1:09
// +----------------------------------------------------------------------
// | Author:     xab(xab@xabad.cn)
// +----------------------------------------------------------------------
// | Description:
// +----------------------------------------------------------------------
package cn.xabad.commons.fresco;

import android.graphics.Bitmap;
import com.facebook.imagepipeline.request.BasePostprocessor;

/**
 * DESC   :
 * AUTHOR : Xabad
 */
public class BlurPostprocessor extends BasePostprocessor {
    private int radius = 18 ;

    public BlurPostprocessor() {
    }

    public BlurPostprocessor(int radius) {
        this.radius = radius;
    }

    @Override
    public void process(Bitmap bitmap) {
        try {
            Blur.convert(bitmap,radius);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
